/**
 * 
 */
package ${basepackage}.model.vo.op.opuser;

import javax.validation.GroupSequence;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.excalibur.core.model.BaseObject;

import ${basepackage}.model.vo.validation.IConstraintGroup;
import ${basepackage}.model.vo.validation.INotNullGroup;

/**
 * @author "Jiance Qin"
 * 
 * @date 2014年3月10日
 * 
 * @time 下午4:45:29
 * 
 * @desc
 * 
 */
@GroupSequence(value = { INotNullGroup.class, IConstraintGroup.class,
		UpdateAccountForm.class })
public class UpdateAccountForm extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5275539481794221767L;

	@NotBlank(message = "{webapp.validation.UpdateAccountForm.email.NotBlank}", groups = INotNullGroup.class)
	@Pattern(message = "{webapp.validation.UpdateAccountForm.email.Pattern}", regexp = "^\\s*\\w+([.+-]\\w+)*@\\w+([.-]\\w+)*\\.\\w+([.-]\\w+)*\\s*$", groups = IConstraintGroup.class)
	private String email;

	@NotBlank(message = "{webapp.validation.UpdateAccountForm.tel.NotBlank}", groups = INotNullGroup.class)
	private String tel;

	@NotBlank(message = "{webapp.validation.UpdateAccountForm.realName.NotBlank}", groups = INotNullGroup.class)
	@Length(message = "{webapp.validation.UpdateAccountForm.realName.Length}", min = 2, max = 50, groups = IConstraintGroup.class)
	private String realName;

	@NotBlank(message = "{webapp.validation.UpdateAccountForm.captchaKey.NotBlank}", groups = INotNullGroup.class)
	private String captchaKey;

	@NotBlank(message = "{webapp.validation.UpdateAccountForm.captcha.NotBlank}", groups = INotNullGroup.class)
	private String captcha;

	/**
	 * 
	 */
	public UpdateAccountForm() {

	}

	/**
	 * @return the captchaKey
	 */
	public String getCaptchaKey() {
		return captchaKey;
	}

	/**
	 * @param captchaKey
	 *            the captchaKey to set
	 */
	public void setCaptchaKey(String captchaKey) {
		this.captchaKey = captchaKey;
	}

	/**
	 * @return the captcha
	 */
	public String getCaptcha() {
		return captcha;
	}

	/**
	 * @param captcha
	 *            the captcha to set
	 */
	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the tel
	 */
	public String getTel() {
		return tel;
	}

	/**
	 * @param tel
	 *            the tel to set
	 */
	public void setTel(String tel) {
		this.tel = tel;
	}

	/**
	 * @return the realName
	 */
	public String getRealName() {
		return realName;
	}

	/**
	 * @param realName
	 *            the realName to set
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
